package com.jtstest.demo.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.locationtech.jts.geom.Point;

/**
 * <p>
 * 
 * </p>
 *
 * @author fengyuhao
 * @since 2021-03-14
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    public class TGps extends Model<TGps> {

    private static final long serialVersionUID = 1L;

      /**
     * 时间
     */
      @JsonFormat(shape = JsonFormat.Shape.STRING,
              pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
              timezone = "+08")
        private Date time;

      /**
     * 设备ID
     */
      private String devId;

    private Point location;

      /**
     * 卫星定位数
     */
      private int gpsNum;

      /**
     * GPS定位信息
     */
      private String gpsType;

      /**
     * 对地真北航向角
     */
      private double azimuth;

    private double gndRate;


    @Override
    protected Serializable pkVal() {
          return this.time;
      }

}
